<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>{$meta_title}</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta name="author" content="19www.com" />
	<meta name="Copyright" content="Appcore 1.0" />
    <link href="__THEME__/public/statics/css/home.css" rel="stylesheet" />
	<!--关键JS--> 
	<script type="text/javascript">var memberpath = "/user/";</script>
	<script type="text/javascript" src="__THEME__/public/statics/js/zh-cn.js"></script>
	{@js href="__STATIC__/js/jquery/jquery.js"}
	{@js href="__STATIC__/js/jquery/plugins/jquery.artDialog.js?skin=default"}
	{@js href="__THEME__/public/statics/js/dayrui.js"}
	<!--[if IE 6]>
	<script src="__STATIC__/js/ie6png.js" type="text/javascript"></script>
	<script type="text/javascript">
	   EvPNG.fix('div, ul, img, li, input'); 
	</script>
	<![endif]-->
    <script type="text/javascript">
    $(function(){
		// 回到顶部
		$("#back-to-top").hide();
		$(window).scroll(function(){
		 if ($(window).scrollTop()>100){
			$("#back-to-top").fadeIn(1500);
			} else {
			$("#back-to-top").fadeOut(1500);
			}
		});
		$("#back-to-top").click(function(){
			$('body,html').animate({scrollTop:0},1000);
			return false;
		});
		// 搜索
		$("#dr_headSel li").click(function(){
			if($('#keyword').val()=='请输入搜索内容，如：AppCore') $('#keyword').val('');
			$("#dr_headSel").toggle();
			var dir = $(this).attr('dir');
			var name = $(this).children('a').html();
			$("#dr_headSlected").html(name);
			$("#dr_module").val(dir);
		});
	});
	
	function dr_head_show_hide(){
		$("#dr_headSel").toggle();
	}
	
	function top_search() {
		var keyword = $('#keyword').val();
		if (keyword == '请输入关键字') keyword = '';
		if (!keyword) {
			dr_tips("请输入关键字");
			return;
		}
		// 按模块组合搜索地址
		var module = $("#dr_module").val();
		if (module) {
			module = '{:GROUP_NAME}';
			window.location.href='index.asp?m='+ module +'&c=index&a=search&keyword='+keyword;
		} else {
            dr_tips("你没有选择模块呢");
		}
	}
	</script>
</head>
<body>
<div id="back-to-top" style="display: block;"><a href="#top">TOP</a></div>
<!--网站头部 begin-->
<div class="head">
	<div class="idx" style="margin-top:0px">
        <div class="r">
   			<a href="{:U('home:index/index')}" class="bgone"><b>首页</b></a>
       	 	<a href="javascript:void(0);" onclick="dr_set_homepage('http://www.19www.com/')">设为首页</a>
        	<a href="javascript:void(0);" onclick="dr_add_favorite('http://www.19www.com/','永久网络_新闻')">加入收藏</a>
   			<a href="#">手机版</a>
        </div>
        <div class="l">
            <div id="loginForm">
                <div id="haslogin"><script type="text/javascript" src="{:U('public:api/api?module_id='& module_id &'&f=userinfo')}"></script></div>
            </div>
        </div>
    </div>
</div>
<div class="ilogo">
	<div class="logo"><a href="###" title="永久网络"><img src="__THEME__/public/statics/imgs/logo2.gif" /></a></div>
	<!-----搜索条----->
	<div class="sc">
 		<div class="scbox">
     		<div class="selSearch">
				<div class="nowSearch" onclick="dr_head_show_hide()" id="dr_headSlected">...</div>
				<div class="btnSel"><a></a></div>
				<div class="clear"></div>
                <ul class="selOption" id="dr_headSel" style="display:none;">
                	<!--action=cache是缓存调用标签，name=module是调用模块缓存数据，下面是为了循环显示当前站点的模块-->
						<!--将第一个作为默认搜索模块-->
						<script type="text/javascript">
						$("#dr_module").val("{:GROUP_NAME}");
						$("#dr_headSlected").html("新闻");
						</script>
						{cmstag:nav table='nav' where="status=1 and pid=0 and cate='main' and alias<>'' AND dir<>'' and alias<>'首页' " order='ordid asc, id asc' loop=0 return='nav'}
						<li dir="[nav:dir]"><a href="javascript:void(0);">[nav:alias]</a></li>
						{/cmstag:nav}
                </ul>
			</div>
			<input type="input" id="keyword" onfocus="this.value=(this.value=='请输入关键字')?'':this.value" 
			onblur="this.value=(this.value=='')?'请输入关键字':this.value" class="SC_input">
			<input id="dr_module" type="hidden" value="{:GROUP_NAME}" />
      		<input name="" onclick="top_search();" type="button" value="&nbsp;" class="scbtn" align="left" />
		</div>
       	<div class="clear"></div>
        <!--只有模块页面才有tag功能，首页不具备此功能所以不显示-->
        <div class="sc_tags">
			热搜TAGS：  
			<!--此标签用于调用tag标签-->
			{cms:hottag count=8}
		</div>
	</div>
    <!-----搜索条结束----->
</div>
<div class="nav">
    <ul class="dr_nav">
		{cmstag:nav table='nav' where="status=1 and pid=0 and cate='main'" order='ordid asc, id asc' loop=0 return='nav'}
		<li id="dr_nav_[nav:id]" {if nav('istop')=1}class='istop'{/if}><a href="[nav:link]" title="[nav:name]" >[nav:name]</a></li>
		{/cmstag:nav}
	</ul>
</div>
<!--网站头部 end-->

